package com.colorfruit.framework.rabbitmq.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class ProducerMsg implements Serializable {

    private static final long serialVersionUID = 5779159503427951696L;


    private String producerName;

    private BusinessMsg msg;

    private int retryCount;

    private boolean isCallBacked;

    public ProducerMsg() {
    }

    public ProducerMsg(String producerName, BusinessMsg msg) {
        this.producerName = producerName;
        this.msg = msg;
        this.retryCount = 0;
    }


}
